package com.SSH_Test.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.SSH_Test.dao.StudentDao;
import com.SSH_Test.dao.TestDao;
import com.SSH_Test.pojo.Student;
import com.SSH_Test.pojo.TestUser;
import com.opensymphony.xwork2.ActionSupport;

@Component("studentaction")
public class student_action extends ActionSupport{
	
	private StudentDao studentdao;
	private List<Student> list;

	
	public List<Student> getList() {
		return list;
	}
	public void setList(List<Student> list) {
		this.list = list;
	}
	public String exectue(){
		list=studentdao.listStudent();

		return SUCCESS;
	}
	public StudentDao getStudentdao() {
		return studentdao;
	}
	@Resource(name="studentdao")
	public void setStudentdao(StudentDao studentdao) {
		this.studentdao = studentdao;
	}

}
